package cn.com.demo.microservice.consumer.service.feign;

import cn.com.demo.microservice.consumer.service.feign.Impl.IUserFactory;
import cn.com.demo.microservice.entity.AqUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "${service.provider.user.t21.name}",fallbackFactory = IUserFactory.class)
public interface IUserAddFeignService {
    @PostMapping("/user/add")
    public int addUser(@RequestBody AqUser user);
}
